package data;

public class Numero {
	public enum TypeNum {
		Portable, Fixe, Fax, Autre
	}

	private static int ID = 0;
	private int id;
	private TypeNum type;
	private String num;

	public Numero(TypeNum type, String num) {
		id = ID++;
		this.type = type;
		this.num = num;
	}

	public TypeNum getType() {
		return type;
	}

	public void setType(TypeNum type) {
		this.type = type;
	}

	public String getNum() {
		return num;
	}

	public void setNum(String num) {
		this.num = num;
	}

	public int getId() {
		return id;
	}
}
